package com.fanghaoran.notes.dao.impl;

import com.fanghaoran.notes.dao.TypeDao;
import com.fanghaoran.notes.entity.ProductType;
import com.fanghaoran.notes.util.BaseDaoUtil;

import java.util.List;

/**
 * @Author: win11
 * @Date: 2023/04/18/18:16
 * @Description:
 */
public class TypeDaoImpl implements TypeDao {
    @Override
    public List<ProductType> selectAllType() throws Exception {
        String sql="select * from p_type limit 5";
        return BaseDaoUtil.executeQuery(ProductType.class,sql);
    }
}
